import { defHttp } from "@/utils/http";

// ERP 库存核查次数记录 API
export const invtMcheckFreqApi = {
	// 获得库存核查次数记录分页
	invtMcheckFreqList: async (params: any) => {
		return await defHttp.get({ url: `/whs/invt-mcheck-freq/page`, params });
	},
	// 新增库存核查次数记录
	invtMcheckFreqCreate: async (data: any) => {
		return await defHttp.post({ url: `/whs/invt-mcheck-freq/create`, data });
	},

	// 修改库存核查次数记录
	invtMcheckFreqUpdate: async (data: any) => {
		return await defHttp.put({ url: `/whs/invt-mcheck-freq/update`, data });
	},

	// 删除库存核查次数记录
	invtMcheckFreqDelete: async (id: number) => {
		return await defHttp.delete({ url: `/whs/invt-mcheck-freq/delete?id=` + id });
	}
};
